<?php

namespace App\Providers;

use Illuminate\Http\Request;
use Dingo\Api\Routing\Route;
use Dingo\Api\Auth\Provider\Authorization;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
use Symfony\Component\HttpKernel\Exception\UnauthorizedHttpException;


class ApiRsaProvider extends Authorization
{
    public function authenticate(Request $request, Route $route)
    {
        // Logic to authenticate the request.

        //throw new UnauthorizedHttpException('Unable to authenticate with supplied username and password.');
    }

    public function getAuthorizationMethod()
    {
        return 'mac';
    }
}
